<div class="page-content" >
            
    <div class="panel panel-default">
         <ul class="breadcrumb"> 
				<li><a href="<{:U('School/add_subject')}>">线下课程</a> </li>
				<li class="active">添加/修改线下课程</li>
			</ul>
        <div class="panel-body">
            <form id="form" class="form-horizontal" enctype="multipart/form-data" autocomplete="off" method="post" novalidate="novalidate">
                <input type="hidden" name="id" value="<{$data.id}>">
            
                <div class="form-group">
                    <label class="col-sm-2 control-label">线下课程名称</label>
                    <div class="col-sm-7">
                        <input type="text" name="name" class="form-control" value="<{$data.name}>">
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>
                 
                    <div class="form-group">
                    <label class="col-sm-2 control-label">关联线上课程</label>
                    <div class="col-sm-7">
                      <select name="subjectid">
							<option value="0">请选择</option>
							<volist name="subject_list" id="vo">
							<option <if condition="$vo['subjectid'] eq $data['subjectid']">selected="selected"</if> value="<{$vo.subjectid}>"><{$vo.subject}></option>
							</volist>
							</select>
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>
                 
                 
                 <!--<div class="form-group">
                    <label class="col-sm-2 control-label">价格</label>
                    <div class="col-sm-7">
                        <input type="text" name="price" placeholder="购买课程时，选上会加上这价格"  class="form-control" value="<{$data.price}>">
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>-->
				
				<div class="form-group">
                    <label class="col-sm-2 control-label">开课次数</label>
                    <div class="col-sm-7">
                        <input type="text" name="num" placeholder="一周开几次课，用于选下选座"  class="form-control" value="<{$data.num}>">
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>
				
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-7">
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
   

        </div>


<script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
            name: {
                message: '学校名称',
                validators: {
                    notEmpty: {
                        message: '学校名称不能为空'
                    },
                }
            },
			
			province_id: {
                message: '省份',
                validators: {
                    notEmpty: {
                        message: '请选择省份'
                    },
                }
            },
			
			/*price: {
                message: '价格',
                validators: {
                    notEmpty: {
                        message: '价格'
                    },
                }
            },*/
			  

        }
    });
	
 
});
 </script>
     
 
</body>
</html>
